    <main class="lyear-layout-content">     
      <div class="container-fluid">       
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-toolbar clearfix">
                <div class="toolbar-btn-action">
                  <div class="btn btn-primary m-r-5">拼团管理</div>
                </div>
              </div>
              <div class="card-toolbar clearfix">
                <form class="pull-right search-bar" method="post" action="{:url('search')}">
                  <div class="input-group">
                    <input type="text" class="form-control" value="" name="sname" placeholder="请输入拼团编号查询拼团">
                    <div class="input-group-btn">
                      <input class="btn btn-default dropdown-toggle" type="submit" value="查 询" >
                    </div>
                  </div>
                </form>
              </div>
              <div class="card-body">
                
                <div class="table-responsive">
                  <table class="table table-bordered">
                    <thead>
                      <tr>
                        <th>拼团编号</th>
                        <th>拼团名称</th>
                        <th>优惠方式编号</th>
                        <th>拼团开始时间</th>
                        <th>拼团结束时间</th>
                        <th>拼团人数</th>
                        <th>查看优惠方式</th>
                        <th>操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      {foreach $data as $key=>$vo}
                      <tr>
                        <td> {$vo.ptid}</td>
                        <td>{$vo.ptname}</td>
                        <td>{$vo.yid}</td>
                        <td>{:date('Y-m-d H:i:s',$vo.ptstartime)}</td>
                        <td>{:date('Y-m-d H:i:s',$vo.ptendtime)}</td>
                        <td>{$vo.ptnum}</td>
                        <td>
                          <div class="btn-group">
                            <a class="btn btn-xs btn-default" href="{:url('Yhtype1/lookyh')}?id={$vo.yid}" title="查看优惠方式" data-toggle="tooltip"><i class="mdi mdi-voicemail"></i></a>
                          </div>
                        </td>
                        <td>
                          <div class="btn-group">
                            <a class="btn btn-xs btn-default" href="{:url('editpage')}?id={$vo.ptid}" title="编辑" data-toggle="tooltip"><i class="mdi mdi-pencil"></i></a>
                            <a onclick="deldata({$vo.ptid},'ptzq')" class="btn btn-xs btn-default" href="javascript:void(0)" title="删除" data-toggle="tooltip"><i class="mdi mdi-window-close"></i></a>
                          </div>
                        </td>
                        
                      </tr>
                      {/foreach}
                    </tbody>
                  </table>
                </div>
                <ul class="pagination">
                  {$data|raw}              
                </ul>       
              </div>
            </div>
          </div>
          
        </div>
        
      </div>
      
    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/main.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/self.js"></script>
<script type="text/javascript">
$(function(){
    $('.search-bar .dropdown-menu a').click(function() {
        var field = $(this).data('field') || '';
        $('#search-field').val(field);
        $('#search-btn').html($(this).text() + ' <span class="caret"></span>');
    });
    
});
</script>
</body>
</html>